# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import weblib.django.misc.misc


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='LittleData',
            fields=[
                ('data_id', models.CharField(default=b'', max_length=255, serialize=False, primary_key=True)),
                ('data_type', models.CharField(default=b'', max_length=255, null=True)),
                ('source', models.TextField(default=b'', null=True)),
                ('elevation', models.FloatField(default=None, null=True)),
                ('num_valid_fields', models.IntegerField(default=None, null=True)),
                ('num_error', models.IntegerField(default=None, null=True)),
                ('num_warning', models.IntegerField(default=None, null=True)),
                ('seq_num', models.IntegerField(default=None, null=True)),
                ('num_dups', models.IntegerField(default=None, null=True)),
                ('is_sound', models.BooleanField()),
                ('bogus', models.BooleanField()),
                ('discard', models.BooleanField()),
                ('sut', models.IntegerField(default=None, null=True)),
                ('julian', models.IntegerField(default=None, null=True)),
                ('date_char', models.DateTimeField()),
                ('slp', models.FloatField(default=None, null=True)),
                ('slp_qc', models.IntegerField(default=None, null=True)),
                ('ref_pres', models.FloatField(default=None, null=True)),
                ('ref_pres_qc', models.IntegerField(default=None, null=True)),
                ('ground_t', models.FloatField(default=None, null=True)),
                ('ground_t_qc', models.IntegerField(default=None, null=True)),
                ('psfc', models.FloatField(default=None, null=True)),
                ('psfc_qc', models.IntegerField(default=None, null=True)),
                ('precip', models.FloatField(default=None, null=True)),
                ('precip_qc', models.IntegerField(default=None, null=True)),
                ('t_max', models.FloatField(default=None, null=True)),
                ('t_max_qc', models.IntegerField(default=None, null=True)),
                ('t_min', models.FloatField(default=None, null=True)),
                ('t_min_qc', models.IntegerField(default=None, null=True)),
                ('t_min_night', models.FloatField(default=None, null=True)),
                ('t_min_night_qc', models.IntegerField(default=None, null=True)),
                ('cloud_cvr', models.FloatField(default=None, null=True)),
                ('cloud_cvr_qc', models.IntegerField(default=None, null=True)),
                ('update_dt', models.DateTimeField(default=weblib.django.misc.misc.local_now)),
                ('level_info', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='LittleLog',
            fields=[
                ('log_id', models.AutoField(serialize=False, primary_key=True)),
                ('filename', models.CharField(default=b'', max_length=255, blank=True)),
                ('datafile_dt', models.DateTimeField()),
                ('update_dt', models.DateTimeField(default=weblib.django.misc.misc.local_now)),
            ],
        ),
        migrations.CreateModel(
            name='LittlePoint',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('point_id', models.CharField(unique=True, max_length=255)),
                ('latitude', models.FloatField()),
                ('longitude', models.FloatField()),
                ('station_id', models.CharField(default=b'', max_length=255, null=True)),
                ('station_name', models.CharField(default=b'', max_length=255, null=True)),
                ('platform', models.CharField(default=b'', max_length=255, null=True)),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='littlepoint',
            unique_together=set([('latitude', 'longitude')]),
        ),
        migrations.AddField(
            model_name='littledata',
            name='little_point',
            field=models.ForeignKey(to='littler.LittlePoint', blank=True, to_field=b'point_id'),
        ),
    ]
